package com.vogue.supplymall.shop.domain.mapper;

import com.vogue.ssm.database.util.SqlLangDriver;
import com.vogue.supplymall.shop.domain.model.ProductImg;

import java.util.List;

import org.apache.ibatis.annotations.Lang;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * The interface Product img mapper.
 *
 * @aouthor: zhangliang
 * @date: Create in 2017-12-26
 */
@Mapper
public interface ProductImgMapper extends BaseMapper<ProductImg, Long> {
	
	/**
	 * 根据syscodeid、productid得到商品图片信息
	 */
	@Select("select * from product_img where syscodeid=#{arg0} and productid=#{arg1}")
	@Lang(SqlLangDriver.class)
	public List<ProductImg> findProductImgBySP(Long syscodeId,Long productId);
}
